/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.zypapp.backingBean;

import it.zypapp.entity.Clienti;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import org.primefaces.event.SelectEvent;

/**
 *
 * @author utente
 */

public class DialogCliente {
    
        public void onDialogReturn(SelectEvent event) {
            Clienti clienti = (Clienti) event.getObject();
            FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "Car Selected", "Model:" + clienti.getCognome());

            FacesContext.getCurrentInstance().addMessage(null, message);
        }
}
                    

    

